#pragma once
#include <iostream>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string>
#include <sys/wait.h>
#include <cstring>
#include <memory>
#include <unistd.h>
#include <jsoncpp/json/json.h>
#include <sstream>
#include "Log.hpp"




using namespace LogModule;

enum Exitcode
{
    OK = 0,
    USAGE_ERROR,
    SOCKET_ERROR,
    BIND_ERROR,
    LISTEN_ERR,
    CONNECT_ERROR,
    LISTEN_ERROR,
    FORK_ERR,
};

class NOCOPY
{
    public:
    NOCOPY(){}
    ~NOCOPY(){}

    NOCOPY(const NOCOPY&) = delete;
    const NOCOPY& operator=(const NOCOPY&) = delete;
};

#define CONV(addr) ((struct sockaddr*)&addr)
